package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.orm.MPage;
import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.vo.DeliveryAddressVo;
import com.weixing.mall.provider.api.service.DeliveryAddressServiceRpc;
import org.springframework.stereotype.Component;

/**
 * @Author wx
 * @Date 2019/12/16 13:41
 * @Version 1.0
 */
@Component
public class DeliveryAddressServiceFallback implements DeliveryAddressServiceRpc {
    @Override
    public Result<DeliveryAddressVo> getById(Long id) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public Result<MPage<DeliveryAddressVo>> selectByAgentId(long agentId, String currentPage, String pageSize) {
        return ResultUtil.error("服务不可用");
    }
}
